package net.qhzw.geologr5.gis.service.system.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeSimpleUtil {


    /***
     * 返回当天日期字符串
     * @return
     */
    public static String getTimeStr() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
        return sdf.format(new Date());
    }

    public static void main(String[] args) {
        String timeStr = getTimeStr();
        System.out.println(timeStr);
    }

}
